package org.hxyjs.service;

import org.hxyjs.dto.DTO;
import org.hxyjs.entity.ChatAdmin;
import org.hxyjs.page.PageInfo;

public interface ChatAdminService {
    /**
     * 查询全部
     * @return
     */
    public DTO<ChatAdmin> getAllChatAdmins() throws Exception;
    /**
     * 根据主键查询
     * @return
     */
    public DTO<ChatAdmin> getChatAdminByUno(String uno) throws Exception;
    /**
     *删除
     * @param uno
     * @return
     */
    public DTO<ChatAdmin> deleteChatAdmin(String uno) throws Exception;
    /**
     *  修改
     * @param chatadmin
     * @return
     */
    public DTO<ChatAdmin> updateChatAdmin(ChatAdmin chatadmin)  throws Exception;
    /**
     *  增加
     * @param chatadmin
     * @return
     */
    public DTO<ChatAdmin> addChatAdminByUno(ChatAdmin chatadmin)  throws Exception;

    public DTO<ChatAdmin> getChatAdminsByPage(PageInfo pageInfo) throws Exception;

    public DTO<ChatAdmin> getChatAdminsWithOrders(String  uno)  throws Exception;

    public DTO<ChatAdmin> activate(String  uno)  throws Exception;

    public DTO<ChatAdmin> lettory(String  uno,String giftName)  throws Exception;

}
